
<%@ page import="com.surelution.projects.crm.MarketTracking" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'marketTracking.label', default: 'MarketTracking')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="marketTracking.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: marketTrackingInstance, field: "id")}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="marketTracking.market.label" default="Market" /></td>
                            
                            <td valign="top" class="value">${marketTrackingInstance?.market?.name}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="marketTracking.handleTime.label" default="Handle Time" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${marketTrackingInstance?.handleTime}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="marketTracking.handler.label" default="Handler" /></td>
                            
                            <td valign="top" class="value">${marketTrackingInstance?.handler?.username}</td>
                            
                        </tr>
                    
                    	
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="marketTracking.reason.label" default="Reason" /></td>
                            
                            <td valign="top" class="value">${marketTrackingInstance?.reason?.title}</td>
                            
                        </tr>
                    	
                    	<tr class="prop">
                            <td valign="top" class="name"><g:message code="marketTracking.description.label" default="Description" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: marketTrackingInstance, field: "description")}</td>
                            
                        </tr>
                    
                     	<tr class="prop">
                            <td valign="top" class="name"><g:message code="marketTracking.needFollowup.label" default="Need Followup" /></td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${marketTrackingInstance?.needFollowup}" /></td>
                            
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="marketTracking.preTracking.label" default="preTracking" /></td>
                            
                            <td valign="top" class="value">
   					    		<g:if test="${marketTrackingInstance.preTracking}">
                            		<g:link action="show" id="${marketTrackingInstance.preTracking?.id}"><label title="${marketTrackingInstance.description}">${marketTrackingInstance.preTracking?.handler?.username},${marketTrackingInstance.preTracking?.handleTime.format("yyyy-MM-dd")}</label></g:link>
                            	</g:if>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${marketTrackingInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
